﻿using System;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using Poplar.Passport.Models;

namespace Poplar.Passport.DbContexts
{
    public sealed class PassportDbContext : DbContext
    {
        public PassportDbContext(DbContextOptions<PassportDbContext> options) : base(options)
        {
            Database.EnsureCreated();
        }

        public DbSet<User> Users { get; set; }

        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);
        }
    }
}
